using App_Code.Modules;
using Portal.Core.Helper;
using Portal.Data.Entity;

public partial class Modules_Module_List : ModuleModule
{
    protected override string Action
    {
        get { return "list"; }
    }

    protected override string ViewMembers
    {
        get { return "Name"; }
    }
    protected override void OnCommanDelete(object obj)
    {
        if (obj != null)
        {
            ((BaseObject)obj).Delete();
            //recache list all module
            CacheHelper.Instance.RemoveByMethod(typeof(Module), "ListAvailable");
            Forward("delete");
        }
    }
}